Skip to content

build(deps): bump @posthog/ai from 7.21.0 to 8.4.0 in /backend - #1158

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/posthog/ai-8.4.0
Open

build(deps): bump @posthog/ai from 7.21.0 to 8.4.0 in /backend#1158
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/posthog/ai-8.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 29, 2026

Copy link
Copy Markdown
Contributor

Bumps @posthog/ai from 7.21.0 to 8.4.0.

Release notes

Sourced from @​posthog/ai's releases.

@​posthog/ai@​8.4.0

8.4.0

Minor Changes

  • #4163 45f5488 Thanks @​jurajmajerik! - feat(ai): add a label option to Prompts.get() to fetch the prompt version a label (e.g. production) currently points to. Labeled fetches are cached separately, results carry the resolved label, and a warning is logged when the server does not resolve the requested label (older PostHog versions ignore the parameter and return the latest version). (2026-07-17)

@​posthog/ai@​8.3.1

8.3.1

Patch Changes

  • #4071 182434f Thanks @​DerGeraetK! - fix(ai): declare $ai_cache_reporting_exclusive: false on OpenAI wrapper events so ingestion no longer double-bills cached input tokens for Claude models served through OpenAI-compatible hosts (e.g. OpenRouter). The flag stays unset when callers pass their own input or cache token counts through posthogProperties, so existing passthrough workarounds keep reporting correctly. (2026-07-16)
Changelog

Sourced from @​posthog/ai's changelog.

8.4.0

Minor Changes

  • #4163 45f5488 Thanks @​jurajmajerik! - feat(ai): add a label option to Prompts.get() to fetch the prompt version a label (e.g. production) currently points to. Labeled fetches are cached separately, results carry the resolved label, and a warning is logged when the server does not resolve the requested label (older PostHog versions ignore the parameter and return the latest version). (2026-07-17)

8.3.1

Patch Changes

  • #4071 182434f Thanks @​DerGeraetK! - fix(ai): declare $ai_cache_reporting_exclusive: false on OpenAI wrapper events so ingestion no longer double-bills cached input tokens for Claude models served through OpenAI-compatible hosts (e.g. OpenRouter). The flag stays unset when callers pass their own input or cache token counts through posthogProperties, so existing passthrough workarounds keep reporting correctly. (2026-07-16)

8.3.0

Minor Changes

8.2.3

Patch Changes

  • #4076 68640de Thanks @​bamtheboozle! - fix: prevent unhandled promise rejection from crashing the host process when a streamed provider response errors mid-flight (OpenAI, Azure OpenAI, Anthropic wrappers) (2026-07-06)

8.2.2

Patch Changes

8.2.1

Patch Changes

  • #3754 d8419d4 Thanks @​archievi! - Wrap the Azure OpenAI responses API in PostHogAzureOpenAI so responses.create calls are tracked, matching the non-Azure PostHogOpenAI client. (2026-06-16)
  • Updated dependencies [b3ec845, a0553b3, c6c163a]:
    • @​posthog/core@​1.33.0
    • posthog-node@5.38.0

8.2.0

Minor Changes

  • #3793 b477c02 Thanks @​richardsolomou! - feat: warn when a base_url points at the PostHog AI Gateway. The gateway emits its own $ai_generation, so routing through it double-captures (and, for billable products, double-bills) every call. Detection covers the provider wrappers (OpenAI, Azure, Anthropic, Gemini, Vercel), LangChain, OpenAI Agents, direct captureAiGeneration callers, and the OTel exporter/processor (via the span's server.address / url.full). The warning logs on every routed call; the event is left untouched, since it carries data the gateway never sees (groups, custom properties, trace hierarchy).

... (truncated)

Commits
  • 6326610 chore: update versions and lockfile [version bump]
  • 45f5488 feat(prompts): Fetch prompts by label (#4163)
  • 943d9b8 chore: update versions and lockfile [version bump]
  • 182434f fix(ai): declare inclusive cache token reporting for OpenAI-compatible provid...
  • 629e6c4 chore: delete eslint-disable comments that suppress nothing (#4146)
  • 7a35382 chore: update versions and lockfile [version bump]
  • f4b453a feat(ai): report OpenAI Agents tracing processor errors (#4084)
  • 5720595 chore: update versions and lockfile [version bump]
  • 68640de fix(ai): prevent unhandled rejection crashing host process on mid-stream prov...
  • 3525504 chore: update versions and lockfile [version bump]
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@posthog/ai](https://github.com/PostHog/posthog-js/tree/HEAD/packages/ai) from 7.21.0 to 8.4.0.
- [Release notes](https://github.com/PostHog/posthog-js/releases)
- [Changelog](https://github.com/PostHog/posthog-js/blob/main/packages/ai/CHANGELOG.md)
- [Commits](https://github.com/PostHog/posthog-js/commits/@posthog/ai@8.4.0/packages/ai)

---
updated-dependencies:
- dependency-name: "@posthog/ai"
  dependency-version: 8.4.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 29, 2026
@github-actions

Copy link
Copy Markdown

PR Metrics

Metric Value
Lines changed (prod code) +1 / -1
JS bundle size (gzipped) 🟢 585.4 KB → 585.2 KB (-162 B, -0.0%)
Test coverage 🟢 81.00% → 81.00% (+0.0%)
Performance (preview) Preview not ready — Render deploy may have timed out
Accessibility
Best Practices
SEO

Updated Wed, 29 Jul 2026 19:46:16 GMT · run #2499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants